nested vmx: nested TPR shadow/threshold emulation
authorDongxiao Xu <dongxiao.xu@intel.com>
Tue, 18 Dec 2012 18:14:45 +0000 (18:14 +0000)
committerDongxiao Xu <dongxiao.xu@intel.com>
Tue, 18 Dec 2012 18:14:45 +0000 (18:14 +0000)
commit8425d86ae9d7380f0e6726a7d47ef66589c53617
treeab54830b3d60cc7c65df57c8451df17a3a59e89c
parentcbcbe82fb3fdf2a672eead5580283f5407814b9b
nested vmx: nested TPR shadow/threshold emulation

TPR shadow/threshold feature is important to speedup the boot time
for Windows guest. Besides, it is a must feature for certain VMM.

We map virtual APIC page address and TPR threshold from L1 VMCS,
and synch it into shadow VMCS in virtual vmentry.
If TPR_BELOW_THRESHOLD VM exit is triggered by L2 guest, we
inject it into L1 VMM for handling.

Besides, this commit fixes an issue for apic access page, if L1
VMM didn't enable this feature, we need to fill zero into the
shadow VMCS.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Committed-by: Keir Fraser <keir@xen.org>
xen/arch/x86/hvm/vmx/intr.c
xen/arch/x86/hvm/vmx/vvmx.c